package com.ftg.learn.framework.mybatis.javabase.service;

import com.ftg.learn.framework.mybatis.javabase.entity.StudentEntity;
import com.ftg.learn.framework.mybatis.javabase.mapper.StudentMapper1;
import com.ftg.learn.framework.mybatis.javabase.util.MybatisUtil;
import com.ftg.learn.framework.mybatis.mybatisinterface.mapper.StudentMapper;

import java.util.List;

/**
 * @author lijiaxin
 * @version 1.0
 * @date 2023/9/4 10:04
 */

public class StudentService extends MybatisUtil {

    public List<StudentEntity> showListWithParameter(){
        return super.getSqlSession().getMapper(StudentMapper1.class).showListWithParameter("女","李");
    }

    public List<StudentEntity> showall(){
        return super.getSqlSession().getMapper(StudentMapper1.class).showAll();
    }
}
